//
//  Extension+UIImageView.swift
//  LGWeibo
//
//  Created by 李更 on 8/10/16.
//  Copyright © 2016 itcast. All rights reserved.
//

import UIKit

extension UIImageView{
    convenience init(imageName : String) {
         self.init(image: UIImage(named: imageName))
    }
    func lg_setImageWithString(imgName:String? , placeholderImage : String){
        
       self.sd_setImageWithURL(NSURL(string: imgName ?? ""), placeholderImage: UIImage(named: placeholderImage))
        
    }
}

    

